package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap3 extends OSMap
	{
		public function OSMap3()
		{
			super();

			var ground:OSGround = new OSGround(-20, 740, 180, 20, 45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(140, 800, 120, 280, 0, false);
			ground.setNoErosionDown([78, 79, 80, 81, 82, 83]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([5, 11, 17, 23, 29, 35, 41, 47, 53, 59, 65, 71, 77, 83]);
			ground.erode();
			add(ground);

			ground = new OSGround(260, 780, 180, 300, 0, false);
			ground.setNoErosionDown([126, 127, 128, 129, 130, 131, 132, 133, 134]);
			ground.setNoErosionLeft([9, 18, 27, 36, 45, 54, 63, 72, 81, 90, 99, 108, 117, 126]);
			ground.setNoErosionRight([17, 26, 35, 44, 53, 62, 71, 80, 89, 98, 107, 116, 125, 134]);
			ground.erode();
			add(ground);

			ground = new OSGround(440, 800, 100, 280, 0, false);
			ground.setNoErosionDown([65, 66, 67, 68, 69]);
			ground.setNoErosionLeft([0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65]);
			ground.setNoErosionRight([14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, 69]);
			ground.erode();
			add(ground);

			ground = new OSGround(540, 840, 420, 240, 0, false);
			ground.setNoErosionDown([231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251]);
			ground.setNoErosionLeft([0, 21, 42, 63, 84, 105, 126, 147, 168, 189, 210, 231]);
			ground.setNoErosionRight([20, 41, 62, 83, 104, 125, 146, 167, 188, 209, 230, 251]);
			ground.erode();
			add(ground);

			add(new OSMovingBox(720, 760));

		}
	}
}
